pythonic syntax improvements, example classes moved to example files, new-style class declaration to make sure slots work