further implemented the python classes and added code, that is usefull in debugging