modify the PFI config logic from python  into the shared lib,without the hardware info,more intelligent