Finding closest file with python