"""
Open additional data files using the absolute path,
otherwise it doesn't always find the file.
"""
_ROOT = os.path.abspath(os.path.dirname(__file__))


class Hello(object):

    def say_hello(self):
        return 'Hello, World!'

def open_image(self):
    print('Reading image.gif contents:')
absolute_image_path = os.path.join(_ROOT, 'images/hello.gif')
Простой пакет Hello World setuptools и его установка с помощью pip