Common utilities for Stimpy plugins