Fails if the key is a non-string type

I have a mapping of

```
Mappings:
  AWSRegion:
    region:
       64: "ami"
```

This causes the code to crash due to a startswith on the key of int(64)