printing expressions in python