Fixed python 3.x compatibility and added to default tests.