Minor tweaks in test_api.py.

Made status code asserts print out the data they received from the server so you can figure out what you did wrong. 

Also fixed a couple pylint things.