Writing to DynamoDB using Python