refactor
Create lib.py
Create __init__.py
Merge pull request #1 from funkyButtLoving/master

perform api auth before launch and refactor libraries