CLOUDIFY-1826 Refactor to read py resource files in memory