An equivalent of this script is now at services/api/script. This was done as part of Feature #2272.
Merge branch 'master' of git.curoverse.com:arvados