update Python tools (mainly additions to gallery tool and pasting usage in comments)