Add function to create Python tuples

Signed-off-by: Daniel Francis <francis@sugarlabs.org>