
import string
try:
    (a, b, c) = string.split("elem1 elem2") 
except ValueError:
    pass

