update requirements
add pep8 config file
pass type when creating a key
minor pep8