use pi to get maps by python