Fix bug: paths with spaces
leptonica.py: tweaks