make-sqlite.py locale fix

This would fix #653. My Python is hella basic though, so this might be horribly wrong. Open to criticism and/or suggestions. @jsha

It works locally, but that doesn't necessarily mean I've done it right, heh.