Remove unused imports
I'm having trouble running a batch of Python scripts in parallel that each depend on graph-tool because just importing graph-tool takes around 300 MB of memory. This patch will help cut that number down and avoid out-of-memory errors on massively parallel projects like mine.
Unused imports were identified with the help of pyflakes.