added code to check dictionaries sent through pyqt slots (to be removed if unnecessary)