remove debug function
fixes for python3.x