Python Function To Get Current Year Postgres