Python Write To String