Python Code For Perfect Numbers In Math