Restore Python 3 support for CSV writer; Add custom modules support for expression