python check if string matches any regex in list