_core.py: fix syntax error

Fix syntax error with an additional paren