expanduser and SafeConfigParser can be removed