Added a hack to workaround a python SSL bug
Updated the API to support setting tempetarues and modes