Rk bug fixing

lots in here, woopsie daisies

however, python ftw.