you can just do

    test_content_file = open(path, 'r').read()