python/octal: Implement new spec