import_logs give a IOError: [Errno 29] Illegal seek when receive log from pipe because we can't seek stdin in pipe mode

For this issue I have found a thread here http://forum.piwik.org/read.php?2,97108 and http://forum.piwik.org/read.php?2,111193 but I have problem also with python 2.7. With try: except: the issue is solved.