Python script to migrate mysql to postgresql