Add helpful error message when dealing with old-style classes

--HG--
extra : rebase_source : f94bedeb736bf453bf8d1a38fa50f9bfd47cd249