def get_cursors(source, spelling):
 root_cursor = (source if isinstance(source, Cursor) else source.cursor)
 cursors = []
 for cursor in root_cursor.walk_preorder():
  if (cursor.spelling == spelling):
   cursors.append(cursor)
 return cursors

def get_cursors ( source , spelling ) : root_cursor = ( source if isinstance ( source , Cursor ) else source . cursor ) cursors = [ ] for cursor in root_cursor . walk_preorder ( ) : if ( cursor . spelling == spelling ) : cursors . append ( cursor ) return cursors
obtain all cursors from a source object with a specific spelling .