for line in sys.stdin:
    line = line.decode('utf8')
for regexp in patterns:
    if regexp.search(line):
        print(line.strip('\n'))
if __name__ == '__main__':
    main(['^\\d+\\t(\\p{L}|\\p{M})+$'])
How to implement \p{L} in python regex