Remove with_statement and ConfigParser