PEP8 fix for direction reconstruction