Remove unused import
No need to store profile
Remove not necessary line wrapping
Remove excess space
Use unittest2 to support testing with Python26