Added cd.py and cd_test.py