Update plugin.py

Updating plugin.py to check for the existence of the extras key in the data_dict, addressing issue #89.