py: Fix bug in compiler for empty class bases.

Eg class A(): pass would fail an assertion.
py: Add explicit conversion from float to int via int().
py: Add equality test for None object.