1153 Add content_guessing optional param to imports API

@Kartones can you please review?
I rewrote it to avoid inverted logic. It remains the same plus checking self.content_guessing.