Querying DynamoDB using Python