updated the code to the new SIP API. Also removed metadata methods from __init__.py