Hej this app is just an example which I have found in a example blog,
so import appdaemon.appapi as appapi seems to be correct
2018-12-04 11:10:28.523101 INFO AppDaemon Version 3.0.2 starting
2018-12-04 11:10:28.523923 INFO Configuration read from: /home/pi/.homeassistant/appdaemon.yaml
2018-12-04 11:10:28.529100 INFO AppDaemon: Starting Apps
2018-12-04 11:10:28.530757 WARNING config_dir: /home exists, but is not writeable, owner: root
2018-12-04 11:10:28.538956 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-12-04 11:10:28.738573 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-12-04 11:10:28.739749 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-12-04 11:10:28.740663 INFO Dashboards are disabled
2018-12-04 11:10:28.741116 INFO Starting API
2018-12-04 11:10:28.770379 INFO AppDaemon: HASS: Connected to Home Assistant 0.83.3
2018-12-04 11:10:28.950481 INFO AppDaemon: Got initial state from namespace default
2018-12-04 11:10:30.987023 INFO AppDaemon: Reading config
2018-12-04 11:10:30.993148 INFO AppDaemon: /home/pi/.homeassistant/apps/apps.yaml added or modified
2018-12-04 11:10:30.993783 INFO AppDaemon: /home/pi/.homeassistant/apps/apps.yaml added or modified
2018-12-04 11:10:30.994884 INFO AppDaemon: App ‘test2’ added
2018-12-04 11:10:30.995521 INFO AppDaemon: Adding /home/pi/.homeassistant/apps to module import path
2018-12-04 11:10:30.997842 WARNING AppDaemon: No app description found for: /home/pi/.homeassistant/apps/hello.py - ignoring
2018-12-04 11:10:30.998364 WARNING AppDaemon: No app description found for: /home/pi/.homeassistant/apps/door_notifications.py - ignoring
2018-12-04 11:10:30.998815 WARNING AppDaemon: No app description found for: /home/pi/.homeassistant/apps/test.py - ignoring
2018-12-04 11:10:30.999241 WARNING AppDaemon: No app description found for: /home/pi/.homeassistant/apps/motion.py - ignoring
2018-12-04 11:10:30.999663 INFO AppDaemon: Loading App Module: /home/pi/.homeassistant/apps/test2.py
2018-12-04 11:10:31.023554 INFO AppDaemon: Initializing app test2 using class HelloWorld from module test2
2018-12-04 11:10:31.242458 INFO test2: Hello from AppDaemon
2018-12-04 11:10:31.246625 INFO test2: You are now ready to run Apps!
2018-12-04 11:10:31.251007 INFO AppDaemon: App initialization complete