Set BIND_HOST and fixup constants.js from 'make api'
Fix PEP8 issue