Update base.py

avoid an OS error when scanning mod_path's that are not physical directories (such as eggs)
Merge pull request #37 from coderfi/master

Update base.py