Test list loaded modules
Ignore *.swp files
Test packages
Ignore pyc and pyo files