cmake file and python fixes for linux