Refactored out make_instance method
Fixing pylint issues
Make instance to work for arbitrary json config