import re

statement = "(2*(3+1))*2"
print re.match(r"\(.+\)", statement)