added __init__ for python package and added shutdown function integration

VIM removed a bunch of trailing whitespace as well, kinda clutters the diff...