Fix python api by transforming cookies into a dict before doing requests

Signed-off-by: Eduardo L. Buratti <elb09@c3sl.ufpr.br>