An advanced shell support in python to quickly write shell