Updated views.Preferences to use toPyObject() for QVariant conversions.
Re-simplified views.preferences.Preferences.readPreferences() using getqvarvalue() function. Is now essentially the same as on master branch without PySide support.