Simplified INT_MEMBER_FUNCTION macro

And added macro for __len__ member function.