Replaced iterfind with findall for compatibility with Python 2.6