run.py: do not do sudo if unnececary