Python 3 support on 'grant_access'