Fix help function for use with python