Improved python-mode hook given in README to be more robust

venv-workon should only be run when a project-venv-name has been defined, which is not always the case.