add hostsgen.py
Merge pull request #1 from pynixwang/master

add hostsgen.py