patches/Restricted: properly support StringIO

- this caused guarded_getattr to always allow attributes of instances of
old-style classes
- cStringIO.StringIO("initial value")
1 job for feat/restricted_collections
in 0 seconds, using 0 compute credits, and was queued for 0 seconds