Stackable IO system for Python