modify __init__.py to satisfy testing, importing and pep
change decleration of paths, fix typo
add missing import of tempfile