Changed to use 're' for removing invalid characters from file name to make module name.