Clean up and comment python CRP