Here is Python code to save a PDB and a density map, also available on the Chimera Python scripts web page:
http://plato.cgl.ucsf.edu/trac/chimera/wiki/Scripts
Tom