def __or__(self, other):
    if isinstance(other, six.text_type):
        other = Word(other)
    if (not isinstance(other, BaseParserElement)):
        return None
    return First([self, other])
def __or__(self, other):
    if isinstance(other, six.text_type):
        other = Word(other)
    if (not isinstance(other, BaseParserElement)):
        return None
    return First([self, other])