Ipython TAB completion cursor stays in place, lp:1244998

`TAB' will indent, with `C-q TAB' inserts a literal TAB, `M-x TAB' completes

In py-shell-map:

        (define-key map (kbd "TAB") 'py-indent-line)
        (define-key map [(meta tab)] 'py-shell-complete)