Connect back shell in python