def get_variables (phrase):

     """Get all variables from a phrase."""

     for char in '()&~|<>':
          phrase = phrase.replace(char,' ')
     phrase = phrase.split(' ')
     phrase = list(set([x for x in phrase if x and x!='!allnotes!']))
     return phrase