[Python 3] Use 0o prefix for octal numbers
Summary:
The new 0o prefix was introduced in Python 2.6; the old 0 prefix was
deprecated in Python 3.0.
Reviewers: machniak, mollekopf
Reviewed By: mollekopf
Subscribers: mollekopf
Differential Revision: https://git.kolab.org/D3226