made some attempt to make well-behaved python package from it