python and mathematics files