Remove the preferences api from Krita.h
Python users should use the ConfigParser module instead:
https://docs.python.org/2/library/configparser.html