def esc_quotes(strng):

    return strng.replace('"','\\"').replace("'","\\'")
Get the hostname.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/utils/text.py/esc_quotes--crossover with--dataset/ETHPy150Open kdart/pycopia/QA/pycopia/QA/ssh_controller.py/ShellController.hostname