changed back to python client, use lock file in remoteshell to reduce required mem for job