Remove deprecated IDetector python method.

Refs #4937
Merge remote-tracking branch 'origin/feature/4937_remove_deprecated_getTwotheta'