accessing height from flask, background leap, proper http responses