unused import removed
checking endings (with python3)