code for my Welcome DB2 project on IBM Bluemix, some of it has been described on my blog http://blog.4loeser.net
The code shows how to combine DB2 and Python on IBM Bluemix (http://bluemix.net). It requires either a free trial or a regular account and the creation of a SQL DB (DB2) service. The tables (schema.sql) are created using the administration interface, then the data loaded.
Some steps are documented in the following blog articles: http://blog.4loeser.net/2014/08/using-db2-with-python-on-cloud-foundry.html and http://blog.4loeser.net/2014/08/manage-db2-database-on-ibm-bluemix.html
The Python script depends on the special DB2 Python Buildpack, availabe at https://github.com/ibmdb/db2pythonbuildpack