Execute PostgreSQL Stored Procedure and Function in Python

How to execute PostgreSQL function and Stored procedure in Python. How to use cursor.callproc() to call and process the result returned by PostgreSQL function and procedures.