The octal number must be written differently in order to comply with Python 3:

    0o022

Please also add space around the equal sign in order to comply with PEP 8.