sci-astronomy pyregion is a python module to parse ds9 region files. It also support ciao region files, and can draw regions using matplotlib. pyregion