Bug fixes to HufromCT.py