Realization of perception writen by python