Pythons do this sometimes, even males. It's almost always nothing to worry about. Females during the reproductive season, especially while gravid are the most prone to it, but perfectly healthy pythons of both sexes do it.