`fish_config` is intended to be compatible with both Python 2 and Python 3. You may want to try import one, and if it fails (use `try` block to determine this), try second one.