datetime.strftime workaround