Fix elif to be else, replace getalignedpointer with GetInternalField.