def cmd_fail(*args): global source print "CMD_FAIL" source.disconnect_from_uav()
def cmd_ok(cmd_id): global source print "CMD_OK" source.disconnect_from_uav()