Your traceback points to a problem on the second line of the file configuration.py.
After downloading the files for pdfkit from PyPI, these are the first few lines I see in configuration.py:
# -*- coding: utf-8 -*-
def __init__(self, wkhtmltopdf='', meta_tag_prefix='pdfkit-'):
self.meta_tag_prefix = meta_tag_prefix
As you can see, unlike what is mentioned in the traceback, line 2 of that file is definitely not
That URL points to the site of a school in India. It looks like the version of pdfkit you have installed has been mangled by someone else.