Updated PYEvent with only type variable, no class and format anymore.