control behaviour of the module

def cmd_ublox(self, args):
        '''control behaviour of the module'''
        if len(args) == 0:
            print(self.usage())
        elif args[0] == "status":
            print(self.cmd_status())
        elif args[0] == "set":
            self.ublox_settings.command(args[1:])
        elif args[0] == "reset":
            self.cmd_ublox_reset(args[1:])
        elif args[0] == "mga":
            self.cmd_ublox_mga(args[1:])
        else:
            print(self.usage())