Added reply.py and rewrote auto.py.

Bug fixes.