Add quotes around python and dot path if needed

Supersedes #58