I\'m a bit of a novice in python, and I was playing around with the io module. I was wondering how to pass both file text and text strings as streams so I wrote this function.