def get_python_metadata(path):
    """ Returns the first Docstring from python file, only .py extensions"""
    file_extension = path.split('.')[-1].lower()
    if not file_extension == 'py':
        return
    else:
        f = open(path, 'r')
        quote_number = 0
        string = ''
        for line in f.readlines():
            if '#' in line:
                pass
            elif '"""' in line:
                if quote_number < 2:
                    quote_number = line.count('"""') + quote_number
                    string = string + line
                elif quote_number == 2:
                    return {'Python_Docstring': string}
