strips unsafe characters from url to create safe output filename

fixes #1
removes .pyc files
ignores .pyc files
Merge pull request #2 from kpurdon/fix-output-fn

fixes #1