Sync wirecloud/commons/utils/remote.py with latest changes