Python octal fixes