removed missing import
removed unused imports
removed unused imports and unused variables

ran PyFlakes 0.6.0 to detect these issues, and issues addressed in other commits this morning
removed unused imports and variables
cleaned up unused imports
removed unused imports