Strange about the embed code - that's how Vimeo provides it, so it's weird that it didn't work for you, but great that you managed to make it work in the end! Looking forward to reading the post :)
http://jugad2.blogspot.in/2014/03/the-html5lib-python-librar...