Postgresql Function In Python Exercise