@srkunze 

with imports the python convention is
```
import <core modules>

import <libs>

import <local code>
```

so this would be better
```
import json
import logging
import urllib

import genshi

import ckan.new_authz
import ckan.lib.helpers as h
import ckan.misc
import ckan.model as model
import ckan.lib.i18n
import ckan.lib.base as base
import ckan.logic as logic
import ckan.plugins as p
```

Also I think genshi is unused