Support sys.getprofile() and sys.gettrace()

These functions were added in Python 2.6