Create cpdata.py with two methods.