I have a method like this

```
def _changePerms(path, perms):
    try:
        os.chmod(path, perms)
        log.debug("Setting permission of file " + path + " to " + str(perms))
    except Exception as e:
        raise e

```

and I call the method like

```
_changePerms(path,0o755)

```

But my output log prints this:

```
2016-03-01 18:51:41,716 Setting permission of file path to 493

```

I would like to print the number in its octal form, instead of the decimal form (octal `755` == decimal `493`).

How do I print the value as a string?