Functional python console