title: How to nest records in an Avro schema?
body: <p>I'm trying to get Python to parse Avro schemas such as the following...</p>
  
  <pre><code>from avro import schema
  
  mySchema = """
  {
      "name": "person",
      "type": "record",
      "fields": [
          {"name": "firstname", "type": "string"},
          {"name": "lastname", "type": "string"},
          {
              "name": "address",
              "type": "record",
              "fields": [
                  {"name": "streetaddress", "type": "string"},
                  {"name": "city", "type": "string"}
              ]
          }
      ]
  }"""
  
  parsedSchema = schema.parse(mySchema)
  </code></pre>
  
  <p>...and I get the following exception:</p>
  
  <pre><code>avro.schema.SchemaParseException: Type property "record" not a valid Avro schema: Could not make an Avro Schema object from record.
  </code></pre>
  
  <p>What am I doing wrong?</p>