problems with python io