init

copying in from publicadnan/python/debug