import locale, re
locale.setlocale(locale.LC_ALL, 'en_GB.UTF-8')
print(locale.atof(re.sub('^\\((.*?)\\)$', '-\\1', a)))
Convert a number enclosed in parentheses (string) to a negative integer (or float) using Python?