fixed remote.py to get it running on remote ubuntu account