"""The main file"""
import sys
if sys.version_info[:2] < (3, 2):                           # NOQA
    sys.exit("This program requires Python 3.2 or newer.")  # NOQA
import gettext
from os.path import join
import signal
import gi
gi.require_version('Gtk', '3.0')                            # NOQA
gi.require_version('AppIndicator3', '0.1')                  # NOQA
from gi.repository import Gtk
from . import about, filepaths


# Internationalization
gettext.bindtextdomain(
    'the-simple-noteprogram',
    localedir=join(filepaths.sharedir, 'locale'),
)
gettext.textdomain('the-simple-noteprogram')

# The icon directory is probably not in Gtk.IconTheme's search_path
theme = Gtk.IconTheme.get_default()
if join(filepaths.sharedir, 'icons') not in theme.get_search_path():
    theme.append_search_path(join(filepaths.sharedir, 'icons'))

# Ctrl+C interrupting, doesn't save currently opened notes
signal.signal(signal.SIGINT, signal.SIG_DFL)


def main():
    """Runs the program"""
    from . import indicator, notes
    indicator.load()
    notes.load()
    Gtk.main()
    notes.unload()
    indicator.unload()

if __name__ == '__main__':
    main()

"""The main file"""
import sys
if sys.version_info[:2] < (3, 2):                           # NOQA
    sys.exit("This program requires Python 3.2 or newer.")  # NOQA
import gettext
import os.path
import signal
import gi
gi.require_version('Gtk', '3.0')                            # NOQA
gi.require_version('AppIndicator3', '0.1')                  # NOQA
from gi.repository import Gtk
from . import about, filepaths


# Internationalization
gettext.bindtextdomain(
    'the-simple-noteprogram',
    localedir=os.path.join(filepaths.sharedir, 'locale'),
)
gettext.textdomain('the-simple-noteprogram')

# The icon directory is probably not in Gtk.IconTheme's search_path
theme = Gtk.IconTheme.get_default()
icondir = os.path.join(filepaths.sharedir, 'icons')
if icondir not in theme.get_search_path():
    theme.append_search_path(icondir)

# Ctrl+C interrupting, doesn't save currently opened notes
signal.signal(signal.SIGINT, signal.SIG_DFL)


def main():
    """Runs the program"""
    from . import indicator, notes
    indicator.load()
    notes.load()
    Gtk.main()
    notes.unload()
    indicator.unload()

if __name__ == '__main__':
    main()

Change imports in __main__.py