'Move hosts file to the system path after making operations are
finished.'

def move_hosts(self):

    filepath = 'hosts'
    try:
        shutil.copy2(filepath, self.hosts_path)
    except IOError:
        os.remove(filepath)
        return
    os.remove(filepath)
    self.messagebox('Operation    completed!', 1)
