added oc_codebook.py