Unofficial Port of PySam from http://code.google.com/p/pysam/