Get Mapping With Path Variable Python