You should still handle the case where no langs was passed in the command line or the method. You will run into the backward compatibility issue: someone runs periscope on a headless machine (a NAS for instance) every night. He didn't specify any languages in his script and the loop on None will obviously fail.