Add function to create Python lists

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