initial commit for rewrite to python3