Pretending python is a shell