refactored extract_place in classes in prep for publishing as separate python package