fixing python structure