Fixes to python dependencies

Soloutions to fix problems such as "error: Setup script exited with error: command 'gcc' failed with exit status 1" and "unable to execute swig: No such file or directory"