A bunch of helper functions for the now deprecated python.el