Don't import altai_api.main.app where possible

Global object dependency is not good.

Change-Id: I5ae385cd7fd5554fedf4e86dc90c5c9600e86224