abaqus python / animation controller

Hello all! I am trying to script the creation of an animation as part of an automatic processing of a parameter study. I have found a strange issue when I set the options for the animation controller. The last argument gives a type error, see below:

Example 1: gives a type error: keyword error on maxTime

session.viewports[fileNameShort].animationController.setValues(animationType=TIME_HISTORY, timeHistoryMode=TIME_BASED, timeIncrement=1e-4, minTimeAutoCompute=True, maxTimeAutoCompute=False, maxTime=0.05)

Example 2: gives a type error: keyword error on timeHistoryMode

session.viewports[fileNameShort].animationController.setValues(animationType=TIME_HISTORY, timeHistoryMode=TIME_BASED)

Since example 1 gave the error for maxTime, but not timeHistoryMode, I assume that timeHistoryMode is actually ok. Am I missing an argument in the end that needs to be set? From the rpy files my sessions generate, I do not see a difference, but I cannot run the script without getting these TypeError: keyword error. It is always thrown for the last argument in setValues.