Sql Year Function In Python Definition