check for resources as well as target
Added more test cases and changed PythonTarget,resources