- use standard LAParams
- cStringIO rather than StringIO 
- remove unused import