Remove OS X specific stuff
Reimplement CONREC in python