replace re.findall with compiled re and search
add Accept header for json