Using __name__ instead of __str__ attribute