MediaDir objects check existence of paths
PEP8 and some cosmetic changes