Python rewrite

Now 30% more vain!