val = str(<char *> str_value)
elif type == prefs.PURPLE_PREF_INT:
int_value = accountopt.purple_account_option_get_default_int(option)
val = str(<char *> str_value)
elif type == prefs.PURPLE_PREF_INT:
int_value = accountopt.purple_account_option_get_default_int(option)