Sql Year Date Function Python Programming