how can i compare a date and a datetime in python?,"datetime.datetime(d.year, d.month, d.day)"