general improvements for use with a system Python installation