Python application to manage hosts file