Fix setup.py plugin_files

Fixes error in commit 25505c9216d84eee65ba1e230d6e9ce9600d5093
Revert unintended global change

made in commit 25505c9216d84eee65ba1e230d6e9ce9600d5093
Merge pull request #314 from Sophist-UK/sophist_fix_setup.py_windows_build

Fix setup.py plugin_files
PICARD-602: import missing log

Traceback (most recent call last):
File "/usr/lib/picard/picard/webservice.py", line 241, in _process_reply
handler(str(reply.readAll()), reply, error)
File "/usr/lib/picard/picard/collection.py", line 102, in request_finished
echo=log.error
NameError: global name 'log' is not defined
Update translations
Make py2app includes consistent with py2exe

and make indents standard.
PICARD-603: fix missing imports

Traceback (most recent call last):
File "/usr/lib/picard/picard/ui/mainwindow.py", line 302, in _on_submit
self.tagger.acoustidmanager.submit()
File "/usr/lib/picard/picard/acoustidmanager.py", line 78, in submit
log.debug("AcoustID: submitting ...")
NameError: global name 'log' is not defined


and pylint tells more:

Module picard.ui.infodialog
E: 55,16: Undefined variable 'log' (undefined-variable)
E: 55,26: Undefined variable 'traceback' (undefined-variable)
Remove obsolete ref to cgi
Add missing import
Eliminate unnecessary modules
Revert "Remove obsolete ref to cgi"

This reverts commit 95ec346c2ada3394fdb8db452d824ba047e1ac7a.
Add back use of cgi escape

Added originally in 27cc6d7086576ae7fce22d47ead7f863a937f524 and
reverted in error in 5a2eee348484403bf10d0617ce4dff462db1ad2f.
Remove cgi from exclude_module list
Restructure to import in correct order etc.
Merge pull request #316 from Sophist-UK/sophist_exclude_unneeded_dist_files

Exclude unnecessary python modules...
_fill_try_list(): do not enter loops if not needed
Reduce code redundancy using intermediate variables has_front and has_back
Introduce class CoverArt
Re-order _fill_try_list arguments, place coverartobj in first position
Re-order _walk_try_list() argument, place coverartobj in first position