Correct join syntax

In Python, join is a method on string, not on list.
Add test for _sandboxify
Add missing comma
Merge pull request #2817 from bhagany/patch-1

Fix bug by using correct string joining syntax. Fixes #2817.