Changing octal constants to decimal constants for Python 2 and 3 compatibility