First, thanks for Jinja2!
I was investigating pre-compiling my templates in an app that makes use of PackageLoader. It looks like _walk may have returned a list at some point, but that's no longer the case, so I changed it to just be called recursively.
Let me know if you'd like me to write a test or anything.
Fix list_modules for PackageLoader