REMD/exchange_checker.py refactoring