Allows saving of a modules __dict__ attribute
Add code to clean up
Fixes error with dealing with modules without a file
Check for __main__ module when saving
Merge pull request #41 from matsjoyce/module_dict

Saving a modules __dict__ attribute