It's probably better to replace this with `subprocess.call` with a list of arguments, which will handle all this automatically:

    subprocess.call(["pyrcc4", qrcfile, "-o", pyfile])