Remove import if app from gloo.

This should make Travis test pass again.
Also added a minmal check_output function because it does not exist in py26