>>> import xmlrpclib >>> roundup_server = xmlrpclib.ServerProxy('http://issues.roundup-tracker.org/xmlrpc') >>> types = roundup_server.list('file', 'type') >>> stat = Counter(types) >>> for name, c in stat.most_common(): ... print "%4s %s" % (c, name) ... 819 html 383 text/plain 164 application/octet-stream 89 None 28 text/x-patch 15 text/x-diff 9 text/html 7 image/png 3 application/x-zip-compressed 3 application/vnd.ms-excel 2 application/force-download 2 text/x-gettext-translation 2 application/x-gzip 2 text/x-python 1 image/jpeg 1 text/x-log 1 application/x-gettext 1 txt 1 message/rfc822 1 image/gif 1 application/gzip; name="testfail.tar.gz" 1 application/x-compress 1 text/x-pofile 1 application/x-tar 1 application/download 1 application/octet-stream; name="cgi_client.patch" 1 text/csv