Update core.py
Update core.py

refactor pandas_to_redshift into multiple functions, so that each function performs one of the steps involved in the current function and they can be called and tested independently. 
Should not affect core functionality
Also add a few docstrings.
agawronski/pandas_redshift