Some mathematic scripts in Python