remove that ridiculous shebang
move pickling stuff to external module