Fixed bug in python scripts and added support for local hadoop jobs