Problem solution for Interactive Python