add exchange input
python additions/improvements