implementing bottle and REST