nl: call the function datetime.datetime with utc as argument if call to the is_aware(d) returns True, if not None is the argument, store the result in now.
code: now = datetime . datetime . now ( utc if is_aware ( d ) else None )