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