Changed if (not desktop) to if not desktop: styleguide.