fix octal values as Python 3 does not support something like 0777 anymore (needs to be written as 0o777)