1) still do not understand why you using the SQL when you can create/drop tables from Python using SQLobject:

MyTable.dropTable(ifExists=True)
MyTable.createTable(ifNotExists=True)

2) I can't see the purpose of your code. Can you explain why are you trying to set id that way? I would rather set it from the code:

foo.createTable(ifNotExists=True)
tmp=foo(id="tikdsljg",  aa='qqq', id2='ffff')

Petr

PS: you are using some "strange" indentation in your code. Please try to follow:
http://www.python.org/doc/essays/styleguide.html and use 4 spaces indentation.