fixed bugs in python program transfer script