Bleeding brakes....

Slowly on the pedal, but if the hoses are old they may be a source of some of the problem. New master cylinder may also be bad.