In a large saucepan combine cocoa, flour, and sugar. Add milk and egg yolks. Cook over medium heat, stirring constantly until mixture comes to a boil. Cook until thick, approximately 2 minutes, stirring constantly. Remove from heat and add butter and vanilla. Pour into baked pie crust. Cool completely before cutting. Serve with real whipped cream for a real treat!