Feature/user migration

I'm not sure it's written down anywhere, but we normally follow the pattern of 
```python
def foo():
  ...

if __name__ == '__main__':
  foo()
```