Rewrite setup script by Python

Python is a great language :+1: