python input and initialization