Python cmake configure

Changed configuration system for locating shared libraries.