CDAP-488 Improve integration tests for python

This doesn't really take into account that you can get a non-JSON response for non-204 responses. 

Simpler would be to just put this in a try-catch, and say that it returns ``None`` if the response can't be JSON decoded (i.e. on an exception of the decode). That way we can also avoid using ``httplib``.