Replace octal literals with decimal literals
Fix StringIO import under Python 3
Replace string.find() with "".find()