PERSONAL-948: use pyramid instead of flask