Added --test-nopy option and fixed run-python-nopy