I encountered the Invalid name for Python module: ...filename (it\'ll not be analyzed) warning message in PyDev and I tried to resolve it by replacing ->
I had the similar message and when I checked the script file name, I had a "-" [dash character] in the script name. After I removed the dash character and replaced with " _ " [an under score character], the warning message was gone.