Ways of importing python module

structure 

tree

.
├── pkg1
│   ├── __init__.py
│   ├── one.py
│   └── two.py
└── setup.py

setup.py

from setuptools import setup, find_packages

setup(
    name='pkg1',
    version='0.1.0',
    packages=find_packages()
)

one.py

def hi_one():
    print("one")

two.py

def hi_two():
    print("two")

init.py

#from . import one
#from . import two

from pkg1 import one
from pkg1 import two

usage

import pkg1
pkg1.one.hi_one()

or

from pkg1.one import hi_one
hi_one()