Quote test command for python dependencies

When testing for python dependnecies, the import command to execute by python
ended up in two different command line arguments for the python executable.
Hence python received an erroneous instruction and always reported that the
dependency was missing.