Directory Analyzer in Python and C