Add tests for unbound and bound methods, and fix Python 3