refactored __str__ methods

Python2.7 port is now on par with 3.4
merge branch 'issue24' into devel