Python Save Serial Data To File