import qi import sys if __name__ == "__main__": print("Note that could specify the ip-address with the argument '--qi-url=tcp://146.50.60.??'") application = qi.Application(sys.argv) application.start() preferences = application.session.service("ALPreferenceManager") current_state = preferences.getValue("com.aldebaran.wizard", "state") print("The current state of com.aldebaran.wizard is: " + current_state) application.session.close()