clean up context processor imports
remove unused code and silly 'black' function