Create cdf.py

Import this file into your main program and use the functions as you please.