Moving pysoectral module import down to function where pyspectral is used