Corrected error in dwt.py