Fixed bad format token.
Fixed octal literals for Python 3.