Using cStringIO on badge forms