def localize(self, dt, is_dst=False):
    """Convert naive time to local time"""
if dt.tzinfo is not None:
    raise ValueError('Not naive datetime (tzinfo is already set)')
Python pass tzinfo to naive datetime without pytz