Changing ok function to a method of the api object and some minor bugs
Changing ok function to a method of the api object and some minor bugs

mmerce/python,ShaguptaS/python,jaor/python,xaowoodenfish/python-1,bigmlcom/python