Python GD module, originally by Richard Jones