enhancements for python