Its fine to do as long as the snakes are healthy and you don't think they carry any heritable disability. Many often prove out recessive genetics that way.
Reptiles do not have the same issues that mammals have when inbreeding or line breeding. (Not counting the morphs that are prone to genetic defects)
Ball pythons in particular are a non migratory species. So they breed to whatever snakes are in the same area in the wild. Its safe to say that breeding with relatives is not uncommon. Its also how locality based animals are established.
Natural selection keeps the population strong and selects against weakness/negative traits. In captivity, the humans are the ones responsible for that selection.
So with that said, if you choose to inbreed or line breed, I personally wouldn't go overboard with it and only choose to do a few generations at the very most. Breeding healthy animals should be more important than genetic potential.
Sent from my DROID RAZR using Tapatalk 2