argument limit 8.1.2

Hi, I am trying to use and I am getting the following error:

Traceback (most recent call last):
  File "<input>", line 2, in <module>
TypeError: expected at most 5 arguments, got 6

I am using path, project, attachmentName, parameters, action, actionSettings.

Is there a way around this?

attachmentName should be a key/value pair within the parameters argument.

parameters = {'attachmentName': 'My Email Attachment'}