Updating Octal codes to new format (leading "0o" instead of leading "0")
Updated for Python3.  Ensured unit tests for tests/test_clientsecrets.py pass in both python2 and 3.
* StringIO.StringIO -> io.StringIO
* assertEquals -> assertEqual
* Exception Handling
* dict.iteritems().next() -> next(iter(dict.items()))