In Python 2, an octal literal could be defined as

>>> 0755  # only Python 2

To ensure cross-compatibility, use

0o755  # both Python 2 and Python 3