Alternatively you could just return a list and do away with the shlex dependency. Then you wouldn't need to build any strings at all.