python realization