Local

1. Right now the ```return 1``` statement is inside the for loop.   I do not think you meant it to be put in the for loop.  Please see this. 
2. Can you please provide some code comments on what the hn variable is all about and as an introduction comment on top of module,  explain how the module is supposed to be used.  You can take cues on commenting from http://sphinxcontrib-napoleon.readthedocs.org/en/latest/example_google.html