Use $(which python) for sudo

Change-Id: I9790ff6a5913c68eb3ff13173b12f4495bd0d1c7