Glasses with flexible temples