How To Write A Good Init Py . To turn those directories into packages, all you have to do is add an empty __init__.py file under the print_pkg and time_pkg directories. The __init__ () method takes self along with the two state variables as input. Python main function …