updated to be compatible with python builds