...
- matplotlib.pyplot (comes with python(xy))
- psycopg2 (http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.4.win32-py2.7-pg9.1.2-release.exe)
The snippet
Please not note that if you are using the code, the indents are very important in Python.
...