check for python None as well as 'None'