CGMiner API access using BASH and a short Python script.