Test type properties
Some python 3 compatibility
Merge branch 'typesandsuch' into math2