python split string on regex match