'Create a client to execute code related to a file.'

def create_client_for_file(self, filename):

    self.create_new_client(filename=filename)
    self.master_clients -= 1
    client = self.get_current_client()
    client.allow_rename = False
    tab_text = self.disambiguate_fname(filename)
    self.rename_client_tab(client, tab_text)
