tidied up python join syntax