How to get the "{{ playbook_dir }}" variable directly in the python source code without passing as option

Hello !#####

Ansible has a variable “{{ playbook_dir }}” that gives the playbook directory path. What I understand is, while running the Ansible play, the sources related to Ansible playbook are copied to a temporary location for example:
/root/.ansible/tmp/ansible-tmp-1532003188.07-226176824704061/ and it is run from there. So, currently, for one of my method where I need to read a file, I need to pass “{{ playbook_dir }}” as a parameter while running the play, source code: https://gist.github.com/anis016/1c0a54a9fea7283ece474d0727ddb879#file-hive-py-L350 (Also, please check the play.yml below).
Is there any other way from where I can get the Playbook directory path directly and can use in my python source code without passing as a separate option?