changes to make python wrappers run correctly