Update octal literals to be forward compatible. Prefix is '0o'.
Replace reduce usage

- reduce is no longer a built-in function
update usage of built-in sorted() method

- sorted() no longer accepts cmp argument
- default sorting works for python-bugzilla use case