alter Serializer from JSON into python