def audit_period_bounds(current_period=False):
 (begin, end) = utils.last_completed_audit_period()
 if current_period:
  audit_start = end
  audit_end = timeutils.utcnow()
 else:
  audit_start = begin
  audit_end = end
 return (audit_start, audit_end)

def audit_period_bounds ( current_period = False ) : ( begin , end ) = utils . last_completed_audit_period ( ) if current_period : audit_start = end audit_end = timeutils . utcnow ( ) else : audit_start = begin audit_end = end return ( audit_start , audit_end )
get the start and end of the relevant audit usage period .