merged unstable into py3 * include the major changes of a94f8ed942 of blockstructure.py * adapted all code to python 3 * fixed all tests
a94f8ed942