Complex sentence: At first the story was set in the medieval times as in the anicint stories of One Thousand and One Nights occurred, but the censorship office forced Ghaffari to turn the story of the film to a modern setting.
Split into simpler sentences: At first the story was set in the medieval times as in the ancient stories of One Thousand and One Nights occurred. However, the censorship office forced Ghaffari to turn the story of the film to a modern setting.