[python] Python conversion between coordinates