Python: SyntaxError: keyword can't be an expression
===

In my Python script, I'm calling a function from rpy2, but I get this error:

      File "testAndPlot.py", line 272
        q['dirichlet1b'] = DirichletReg.ddirichlet(np.asarray(listOfFlowFreqs),listOfAlphas, log=False, sum.up=False) #using an R module
    SyntaxError: keyword can't be an expression

It is the only error, because as soon as I comment that o e line, my code runs seamlessly.
What exactly went wrong here?

EDIT: also, is there any way to know *exactly* what caused the error, without having to guess?