Stocky in python