Some typical mathematic problems solving with Python