better to use glob.glob than listdir with these types of continues.