Sql Date Subtract Month In Python