fix infinite loop when the host begins with '.'
close #17
close #14
remove print
bump
fix pep8
merge from upstream