I recently wrote some python (and Django) utilities for working with pgcrypto. Includes a fun pure python implementation of ASCII Armor format – http://www.ietf.org/rfc/rfc2440.txt

Check it out here.