Sql Year Date Function In Python With Parameters