Rewritten setup.py

Inspired from the one from https://github.com/originell/jpype