Coding vector graphics with Python