Fix Proxy.__dir__ method tests for python >= 3.0