Custom Coded Action - Parse Property for Custom Object ID

Attached is the code I’ve pulled together. I’m getting this lambda error:
LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see Understanding how Lambda manages runtime version updates - AWS Lambda
[ERROR] TypeError: main() missing 1 required positional argument: ‘context’
Traceback (most recent call last):
File “/var/task/hubspotHandler.py”, line 6, in hubspot_handler
return file.main(event)

Any help would be appreciated!