Fix for #1167.  We check if a module is a valid python module before importing it.
Fix for #1167.  We check if a module is a valid python module before importing it.

sburnett/seattle,sburnett/seattle,sburnett/seattle,sburnett/seattle,sburnett/seattle,sburnett/seattle