getting input data for python