PyGenObject constructor Null safety

PyGenObject()