According to the docs (https://posthog.com/docs/libraries/python#installation) posthog.api_key has been deprecated in favour of posthog.project_api_key.
However, when I use project_api_key with the current version, 1.3.1, it does not work, while api_key does.