Move code into __init__.py