added back the debug.py module - how was this ever lost?!!