Your number pis an actual value, not a representation of that value. Thus, it is in fact , and , all at the same time.650101212828a16
If you want to see it as octal, just use:
print oct(p)
according to the following decoding:
>>> p = 01212
>>> print p
650
>>> print oct(p)
01212
This is for Python 2 (which you are using as you are using 0NNNthe octal literal variant, not 0oNNN).
Python 3 has a slightly different view:
>>> p = 0o1212
>>> print (p)
650
>>> print (oct(p))
0o1212