[python] Python: how can I check whether an object is of type datetime.date?