py: Add builtin functions bin and oct, and some tests for them.