def _track_event(event_name, bookmark):
 tracker.emit(event_name, {'course_id': unicode(bookmark.course_key), 'bookmark_id': bookmark.resource_id, 'component_type': bookmark.usage_key.block_type, 'component_usage_id': unicode(bookmark.usage_key)})

def _track_event ( event_name , bookmark ) : tracker . emit ( event_name , { 'course_id' : unicode ( bookmark . course_key ) , 'bookmark_id' : bookmark . resource_id , 'component_type' : bookmark . usage_key . block_type , 'component_usage_id' : unicode ( bookmark . usage_key ) } )
emit events for a bookmark .