Move code to core.py

- keep LASFile import in __init__.py