Porting the `tory_add_host` module to Python per feedback on #7