Updated python: refactoring and warning messages.
Updated python: refactoring and warning messages.

LLNL/spack,skosukhin/spack,mfherbst/spack,tmerrick1/spack,LLNL/spack,mfherbst/spack,krafczyk/spack,skosukhin/spack,matthiasdiener/spack,tmerrick1/spack,EmreAtes/spack,EmreAtes/spack,lgarren/spack,iulian787/spack,EmreAtes/spack,lgarren/spack,skosukhin/spack,TheTimmy/spack,lgarren/spack,skosukhin/spack,TheTimmy/spack,matthiasdiener/spack,mfherbst/spack,EmreAtes/spack,tmerrick1/spack,krafczyk/spack,matthiasdiener/spack,tmerrick1/spack,iulian787/spack,TheTimmy/spack,iulian787/spack,matthiasdiener/spack,TheTimmy/spack,LLNL/spack,tmerrick1/spack,LLNL/spack,EmreAtes/spack,mfherbst/spack,krafczyk/spack,krafczyk/spack,LLNL/spack,TheTimmy/spack,iulian787/spack,lgarren/spack,krafczyk/spack,mfherbst/spack,lgarren/spack,matthiasdiener/spack,skosukhin/spack,iulian787/spack