We get name 'reload' is not defined in Python 3. reload() is not in builtins anymore, it's a part of imp now. With this patch gencache.py tries to import imp.reload. If it fails, this means that reload() is in builtins (Python 2.5+).
Thanks, and sorry for the delay. I pushed this fix as revision 835a071ad7bf