Squashed a couple of bugs in the renaming steps
Added error catching for connection, hard-coded socket location (this may cause problems with other setups)
Complete rewrite, creating a new XML tree rather than modifing the loaded one
rennamed OptomizeSVG.py to OptimizeSVG.py