tar.py: Changes permissions integer to octal