ensuring .py extensions when handling LineUpKeyError