Switch to the JSON for the package metadata.

Fixes #19
PEP8ization and clean up of imports.
Set self.tardir even if the source tarball has been already downloaded.
Iterate through all the sources but keep only the first one ending with tar.gz