Added use_sudo as a kwarg to the sudo function.