Start sorting out the tests a bit more
Fix isnonzero bug
Add a few member functions from python