add base python script
refactor python script and fix multi-host bug
Merge pull request #1 from downeast/master

add working python version