def findController(controllers=DefaultControllers):
 for controller in controllers:
  if controller.isAvailable():
   return controller

def findController ( controllers = DefaultControllers ) : for controller in controllers : if controller . isAvailable ( ) : return controller
return first available controller from list .