Add  to some subprocess calls for Python 3