In Python (along with many other C-origin languages), a leading 0 (and, increasingly a leading 0O) indicate that the number is octal, not decimal. See https://docs.python.org/2/reference/lexical_analysis.html#integer-and-long-integer-literals for details.
For example, and for kicks, see what 010 evaluates to.