def _find_process(tokens):
    while tokens:
        token = tokens.pop(0)
        if token.endswith(':'):
            c = token.find('[')
            if (c > (- 1)):
                return token[:c]
            return token[:(- 1)]
def _find_process(tokens):
    while tokens:
        token = tokens.pop(0)
        if token.endswith(':'):
            c = token.find('[')
            if (c > (- 1)):
                return token[:c]
            return token[:(- 1)]