add nose tests for deprecated python usage
add nose tests and fix whitespace errors and warnings
add nose tests and fix blank line errors