scanner: Correctly pass linker option --export-all-symbols

https://bugzilla.gnome.org/show_bug.cgi?id=724883
Fix a typo (exe -> .exe)

https://bugzilla.gnome.org/show_bug.cgi?id=724884
Fix some PEP8 errors from previous commits