parse_entry now accepts an optional python function and its arguments instead of parsing the command.