python: Implement adding an AS to the writer