Just came across this little bit of weirdness in Python and thought I\'d document it write it as a question here in case anyone else is trying to find
You need to explicitly make it a tuple (see the official tutorial):
def returns_tuple_of_one(a): return (a, )