Fix py27 handling of meta class bases