Changed pickle protocol to 2

Changed pickle protocol to 2 which pickling new style classes more efficient than default one.