code: def get_trainer_from_username(self, username, detail=False):
  		
  		params = {
  			'detail': '1' if detail is True else '0',
  			'q': username
  		}
  		r = requests.get(api_url+'trainers/', params=params, headers=self.headers)
  		print(request_status(r))
  		try:
  			r = r.json()[0]
  		except IndexError:
  			return None
  		return Trainer(r) if r else None
docs: Returns a Trainer object from a Trainers username