title: Python: Split string by list of separators
body: <p>In Python, I'd like to split a string using a list of separators. The separators could be either commas or semicolons. Whitespace should be removed unless it is in the middle of non-whitespace, non-separator characters, in which case it should be preserved.</p>
  
  <p>Test case 1: <code>ABC,DEF123,GHI_JKL,MN OP</code><br>
  Test case 2: <code>ABC;DEF123;GHI_JKL;MN OP</code><br>
  Test case 3: <code>ABC ; DEF123,GHI_JKL ; MN OP</code>  </p>
  
  <p>Sounds like a case for regular expressions, which is fine, but if it's easier or cleaner to do it another way that would be even better.</p>
  
  <p>Thanks!</p>