update cpy python compatability