Misc functions for use with PySCeS