fixed some unused imports, turned on cv import (which produces PyDev
error flags)
put 'main' stuff in wrapper in real.py
progress towards python3 version