Change configuration to webapp in python