fixed file handling in cfb_parse.py