inkscape python cleanup

general python guidelines, readability fixes, some pep8, some
documentation.
incorrect param names fixes. Ex: str to strng
corrected a bit with the metadata for reference and usability.
still needs a bit of work.
Optimized loop. speed things up a bit.

commented out code retained for readability.
add missed ending str ) parenthesis
A bit more inkhack cleanup, fixes, and bit of doc.
Merge branch 'inkscape-python-cleanup' of https://github.com/Metallicow/Embroidermodder into Metallicow-inkscape-python-cleanup
Fix error.