adding conversion from js null and undefined to python NoneType