I agree, they are not cuddling - that's classic domination behavior. I'd even guess they follow each other around too? The dominant one following the the less dominant one to make sure that they don't get the perceived "best spot".

Ball pythons are not social animals, they only come together to breed, otherwise, they are not seeking each other out.