from __future__ import unicode_literals

from future.builtins import *
from future import standard_library
standard_library.install_aliases()

from django.utils.encoding import python_2_unicode_compatible

@python_2_unicode_compatible
class Foo(object):

    def __init__(self):
        self.name = 'foo'

    def __str__(self):
        return '{}'.format(self.name)

@python_2_unicode_compatible
class Bar(Foo):

    def __init__(self):
        super().__init__()
        self.extra = 'bar'

    def __str__(self):
        return '{} {}'.format(
            super().__str__(),
            self.extra,
        )


if __name__ == '__main__':
    b = Bar()
    print(b)
