Be more flexible in the inputs for ccwrite.
Wasn't checking for strings/None.