I don't think the requirements for geckos and ball pythons are really all that similair.
I am pretty sure the temps are much different.. I am no gecko expert though.

If you want to put them both in a rack, by all means go for it but you will most likely need two thermostats.