move macosx specifics.
New pyh function.