@staticmethod
def add_u_before_strings(text):
    """Add unicode 'u' in front of strings for Python 2"""
    separator = "'"
    if text.find('"') > text.find("'"):
        separator = '"'
    output = []
    lst = text.split(separator)
    for i, item in enumerate(lst):
        if not i % 2:
            output.append(lst[i])
        else:
            output.append('u' + separator + lst[i] + separator)
    return ''.join(output)
