updated hma.py for sathya's comments
updated code for sathya's comments sans set(line)
updated code for sathya's code review