code: def _extract_user_info(user):
      
  
      temp_user = User()
      copy_attributes = [
          'antennas', 'name', 'night_start', 'night_end', 'weekend', 'home']
  
      for attr in copy_attributes:
          setattr(temp_user, attr, getattr(user, attr))
  
      return temp_user
docs: Creates a new user class with extracted user attributes for later use.
      A new user object is needed to avoid overwritting of e.g. ``user.records``.