Fixed CMakeLists on ubuntu. Went a little OCD in pyrf.py; removed unused imports and such