removed _debugprint calls, adapted errorhandling for python3