@classmethod
def __escape(cls, string):
    """ adds escape characters to string

        :param string: input string
        :type string: :obj:`str`
        :retruns: string with excape characters
        :rtype: :obj:`str`
        """
    return string.replace('\\', '\\\\').replace("'", "\\'")
