A improved version of CMake file

-Removed Python stuff;
-Removed unused code;