How would I implement a simultaneous localization and mapping(SLAM) algorithm in Python?