As per the documentation, there is an init parameter allow_unnamed_section.
So your example can be implemented as following:
import configparser
cp = configparser.ConfigParser(allow_unnamed_section=True)
cp.read("rsyncd.conf")
path = cp.get(configparser.UNNAMED_SECTION, 'path') # read a value