def trim_req(req):
 reqfirst = next(iter(req))
 if ('.' in reqfirst):
  return {reqfirst.split('.')[0]: req[reqfirst]}
 return req

def trim_req ( req ) : reqfirst = next ( iter ( req ) ) if ( '.' in reqfirst ) : return { reqfirst . split ( '.' ) [ 0 ] : req [ reqfirst ] } return req
trim any function off of a requisite .