fix #19: ls command does not work

Fix #19 by using `fromstring` without`StringIO`. Works for me on python3.