PAML: avoided a use of dict.items() by using dict.update() (Py3 compat)