context: don't check for 'is None' because it's different from PyROOT_NoneType