creat python rep