Are two trees the same?

Write same(a, b) that returns whether two binary trees have the same shape and the same values in the same places.

same([1, 2, 3], [1, 2, 3])        ->  True
same([1, 2], [1, None, 2])        ->  False
same(None, None)                  ->  True

The point is to practise recursing over two trees in step.

def same(a, b):
    ...