add extend function in GCTAEventList.i for changing pointer type in Python