Rewrote attribute_event to use nipype