add a timeout parameter
need to set timeout before get_version is called
Added timeout as a paremeter in _post_json