minor edits on append.py