Willy McBean and His Magic Machine
Willy McBean and His Magic Machine is a 1965 stop motion animated time travel film produced by Arthur Rankin, Jr. and Jules Bass' Videocraft International (now Rankin/Bass Productions) in the United States and Dentsu Motion Pictures in Japan. It was presented by Marshall Naify, released by Magna Pictures Distribution Corporation on June 23, 1965.
Willy McBean is sick of trying to learn history for school. Meanwhile, an evil scientist called Rasputin Von Rotten is building a magical time machine so he can go back in time and be the most famous person in history. A Spanish-English talking monkey named Pablo climbs through Willy's window. He explains that he escaped from Von Rotten and he tells Willy what he is planning to do. Pablo stole the plans to the time machine.