Fixed python plugin to work with new layer factory.

The __init__.py file was missing, might be cleaner to add this to the src instead of generating it.