Python codes with simple schemes