Update configure.py

Completely new configure