Sudo: Fix error with Python 3