const char* for the Python function arguments
Refactor to call the file-saving function instead
Cast the shortcut handler to dispatcher_t so gcc stops complaining