Separated cpp and python