removed unused code: import of threading and functions retrieve_hostloctype_data, flatten_data