Move scripting methods out of PTYSession and into another category to avoid accidentally removing them.