Fixed to_python implementation for GranularityField.