Not sure I understand the question, but I don't think you need the brackets. My precedence cheat sheet -
Highest precedence
( ) (anything in brackets is done first)
** (exponentiation)
-x, +x
*, /, %, //
+, -
relational operators: <, >, <=, >=, !=, ==
logical not
logical and
logical or
Lowest precedence
also this one is handy
time = doc.GetTime().Get() # get current time
frame = doc.GetTime().GetFrame(doc.GetFps()) # get current frame