Added python IO idioms