Added new IPython versions and raise exception if IPython versions do not match.
Merge pull request #686 from damianavila/fix_magic

Added new IPython versions and raise exception if IPython versions do not match.