def aware_datetime(*args, **kwargs):
 tz = kwargs.pop('tz', None)
 return make_aware(datetime.datetime(*args, **kwargs), tz=tz)

def aware_datetime ( * args , ** kwargs ) : tz = kwargs . pop ( 'tz' , None ) return make_aware ( datetime . datetime ( * args , ** kwargs ) , tz = tz )
creates a datetime object and makes it timezone-aware .