fix PyDateTimeAPI