Xively REST API Python Class