update gitignore. add virtualenv
use absolute import
improve tests