added assert
Merge branch 'master' of github.com:mattjj/pymattutil
improved printing