xp in py