Update octal literals to use the new syntax.

Python 2.6 introduced a new syntax for octal literals, 0oXXX, which is more
consistent with other non-decimal literals. This syntax is required in Python
3, so we might as well update everything now.