debugging python script