Fixed UnboundMethodType for python3