fixed functional python part II