I can really recommend the DeVIDE software package for things like this (http://code.google.com/p/devide/). It includes everything you need, including a Python distribution that includes cmake, swig, Python, numpy, matplotlib, wxPython, gdcm, VTK, ITK and DeVIDE itself. Furthermore, you can rapidly test and prototype your solution via visual programming.
I'm not entirely sure, but I do believe you need ITK for the Analyze format and if you don't want to go through the trouble of installing, it is included in DeVIDE as well.