Updated Python script for ATOM feeds