Have you looked at the herpstat 2? It will control both for sure and is considered one of the best. With it, you would plug both the UTH plug and the heat lamp plug directly into the thermostat.
the probe for the UTH goes between the mat and the glass on the bottom of the tank. The probe for the lamp I really am Unsure of as I have mine hooked up to a dimmer and only turn it on low at night to keep ambient at 80.
How big is your new no legged friend? A 40 gallon is big enough to comfortably house a full grown adult bp as they prefer small places with places to hide. <but still need room to stretch when they get the urge.>
Pics would help...