remove use of StringIO from RiemannClient
fix bug