Add %%python2 cell magic

Closes gh-5442