If you simply want to remove all parentheses in the string, use this:
document = '(Hello World)))))(((('
document = re.sub(r'[()]', '', document)
# square brackets, [], will capture anything inside them, in this case, any '(' or ')'
print(document)
Output:
Hello World