updated pyclaw routine to correct tabs