Made non-interactive. Can use over SSH now.
Made python2.6 compatible.