removed some warnings and inplemented printing of python structure