I've written this code years ago to help some friends to move their phpbb from mysql to PostgreSQL.
At that time, when I was young and dumb (now I'm only dumb), my knowledge on python was absolutely basic. I've no difficult to say this script is c***p, but it does the job quite well.
So, after the last pgfoundry outage I decided to move my code on github in order to have a more reliable platform and start a new development branch for this script.
I should start pushing the new code in few weeks, for now the old one is accessible here.
Should you need any help please shout :)