small fix to pyio session syntax