private static object CheckNone(PyObject pyObj) { if (pyObj != null) { if (pyObj.obj == Runtime.PyNone) { return null; } } return pyObj; }